package com.dao;

import com.domain.Team;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("teamDao")
public interface TeamDao {

    Team findNameByTeamId(@Param("team_id")Integer team_id);

    List<Team> showTeam();

    Integer deleteByTeamId(@Param("team_id")Integer team_id);

   // int findTeamTotal();
   List<Team> teamSelect(@Param("name")String name,@Param("leader")String leader);

    Integer deleteTeamByLeader(@Param("leader")String leader);
}